package com.sxjh.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 货物地点
 * </p>
 *
 * @author zixin
 * @since 2021-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("it_goods_location")
@ApiModel(value = "GoodsLocation对象", description = "货物地点 ")
public class GoodsLocation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "地点名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "类型 0|装货地,1|卸货地")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "间隔时间/min")
    @TableField("interval_time")
    private Integer intervalTime;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    /*@ApiModelProperty(value = "物料ID")
    @TableField("material_id")
    private Integer materialId;*/

    @ApiModelProperty(value = "是否需要拍照标记,1:否,-1:是")
    @TableField(value = "photo_flag")
    private Integer photoFlag = 1;

    @ApiModelProperty(value = "是否需要人工确认标记,1:否,-1:是")
    @TableField(value = "confirm_flag")
    private Integer confirmFlag = 1;

    @ApiModelProperty(value = "是否启用标记,1:否,-1:是")
    @TableField(value = "activate_flag")
    private Integer activateFlag = -1;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "created_by", fill = FieldFill.INSERT)
    private Integer createdBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新人")
    @TableField(value = "updated_by", fill = FieldFill.UPDATE)
    private Integer updatedBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updated_at", fill = FieldFill.UPDATE)
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "删除人")
    @TableField("deleted_by")
    private Integer deletedBy;

    @ApiModelProperty(value = "删除时间")
    @TableField("deleted_at")
    private LocalDateTime deletedAt;

    @ApiModelProperty(value = "车间id")
    @TableField("workshop_id")
    private Integer workshopId;

    @ApiModelProperty(value = "工厂id")
    @TableField("factory_id")
    private Integer factoryId;

}
